using LeaRun.Application.Entity.SystemManage;
using LeaRun.Application.IService.SystemManage;
using LeaRun.Application.Service.SystemManage;
using LeaRun.Util.WebControl;
using System;
using System.Collections.Generic;

namespace LeaRun.Application.Busines.SystemManage
{
	public class ExcelImportBLL
	{
		private ExcelImportIService service = new ExcelImportService();
		public IEnumerable<ExcelImportEntity> GetPageList(Pagination pagination, string queryJson)
		{
			return this.service.GetPageList(pagination, queryJson);
		}
		public ExcelImportEntity GetEntity(string keyValue)
		{
			return this.service.GetEntity(keyValue);
		}
		public IEnumerable<ExcelImportFiledEntity> GetDetails(string keyValue)
		{
			return this.service.GetDetails(keyValue);
		}
		public void RemoveForm(string keyValue)
		{
			try
			{
				this.service.RemoveForm(keyValue);
			}
			catch (Exception)
			{
				throw;
			}
		}
		public void SaveForm(string keyValue, ExcelImportEntity entity, List<ExcelImportFiledEntity> entryList)
		{
			try
			{
				this.service.SaveForm(keyValue, entity, entryList);
			}
			catch (Exception)
			{
				throw;
			}
		}
		public void UpdateState(string keyValue, int State)
		{
			try
			{
				this.service.UpdateState(keyValue, State);
			}
			catch (Exception)
			{
				throw;
			}
		}
	}
}
